/*
 * @Descripttion: 扩展 wx 实例的路由功能
 * @version: 1.0
 * @Author: 自由如风
 * @Date: 2021-05-21 10:32:10
 * @LastEditors: 自由如风
 * @LastEditTime: 2021-05-23 15:29:48
 */

const Router = require('koa-router')

const router = new Router();

const store = require('./store')
const system = require('./system')
const custom = require('./custom')

router.prefix('/api')

router.use('/store', store.routes(), store.allowedMethods())
router.use('/system', system.routes(), system.allowedMethods())
router.use('/custom', custom.routes(), custom.allowedMethods())

module.exports = router;